<template>
  <div>
    <!-- <el-form-item label="占位内容">
      <el-input v-model="data.placeholder"
                clearable
                placeholder="占位内容"></el-input>
    </el-form-item> -->
    <el-form-item label="尺寸">
      <el-radio-group v-model="localData.size" size="default">
        <el-radio-button label="large">正常</el-radio-button>
        <el-radio-button label="default">小</el-radio-button>
        <el-radio-button label="small">超小</el-radio-button>
      </el-radio-group>
    </el-form-item>
  </div>
</template>
<script>
export default {
  name: 'ConfigArray',
  props: {
    data: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      localData: {}
    }
  },
  watch: {
    data: {
      handler(newVal) {
        if (newVal) {
          this.localData = newVal
        }
      },
      deep: true,
      immediate: true
    },
    localData: {
      handler(newVal) {
        this.$emit('update:data', newVal)
      },
      deep: true
    }
  }
}
</script>
